<?php



namespace App\Model;

use App\Model\Stat\StatDailyHostInfo;
use Illuminate\Support\Facades\DB;
use Illuminate\Database\Eloquent\Model;

/**
 *  女用户池-新手用户福利语聊
 */
class HostPoolForNew extends Model
{
    protected $table = 'new_user_host_pool';
    protected $fillable = ['user_id', 'gender', 'flag'];

    public function userItem()
    {
        return $this->belongsTo(User::class, 'user_id', 'id');
    }

    public function userProfile()
    {
        return $this->belongsTo(UserProfile::class, 'user_id', 'user_id');
    }

    public function hostInfo()
    {
        return $this->belongsTo(HostInfo::class, 'user_id', 'user_id');
    }

    public function dailyHostInfo()
    {
        return $this->hasMany(StatDailyHostInfo::class, 'user_id', 'user_id');
    }
}
